package com.boco.modules.fdoc.web.sigserverpack;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.druid.sql.ast.statement.SQLWithSubqueryClause.Entry;
import com.boco.common.persistence.Page;
import com.boco.common.web.ServletController;
import com.boco.modules.fdoc.model.ServicepackDetailsEntity;
import com.boco.modules.fdoc.service.SigServicepackService;
import com.boco.modules.fdoc.vo.ServicepackDetailsVo;

/**
 * 
 * ClassName: QryUnSvsPackDtlsCtr <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2016年9月28日 下午2:37:05 <br/>
 *
 * @author ken
 * @version 
 * @since JDK 1.7+
 */
@Controller
@RequestMapping(value = "/sigserverpack")
public class QryUnSvsPackDtlsCtr  extends ServletController{
	@Resource
	SigServicepackService sigServicepackService;
	
	@RequestMapping(value="/getUnSvsPackDetailsList")
	public String getUnSvsPackList(ServicepackDetailsVo vo,HttpServletRequest request, HttpServletResponse response, Model model){
		Page<ServicepackDetailsEntity> sdePage=new Page<ServicepackDetailsEntity>(request,response);
		int sigId=vo.getSigId();
		sdePage = sigServicepackService.getUnSvsPackDetailsList(sdePage, sigId);
		request.setAttribute("sdePage", sdePage);
		request.setAttribute("sigId", sigId);
		return "/sigsvspack/sigsvspackadddtl";
	}

}
